﻿<?php if ( isset($this->product) ) { ?>
	<?php
	  require_once('Zend/Currency.php');
	  $currency = new Zend_Currency('cs_CZ');
	?>
		<br clear="all"></br>
		
		<h1><?=$this->product->translate('name'); ?></h1>
		
		<div id="info">
			<dl>
		  		<dt><?= $this->translate('Price') ?>:</dt>
		  		<dd><?= $currency->toCurrency($this->product->price) ?></dd>
			</dl>
			<dl>
				<dt><?= $this->translate("Category") ?>:</dt>
				<dd><?= $this->product->Category->translate('name') ?></dd>
			</dl>
			<dl>
		 		<dd>
		 			<?php if ( isset($this->user) ) { ?>
		 			<div id="left">
		 			<div id="submitbutton2">
        				<a href="<?= $this->url(array('controller' => 'user-basket', 'action' => 'add-basket-item', 'id' => $this->product->id, 'amount' => '1')) ?>" title="<?= $this->translate("Add To Basket") ?>"><?= $this->translate("Add To Basket") ?></a>
        			</div>    
        			</div>
    				<?php } else { ?>
        				<div class="red">
        					<?= $this->translate("Log in to order") ?>
        				</div>
    				<?php } ?>		 				 			
		 		</dd>  
		</dl>
		</div>
		
		<div id="picture">
			<a href="<?= $this->publicUrl . "Products/" . $this->product->image ?>" title="<?= $this->product->translate("name") ?>"><img src="<?=$this->publicUrl."Products/Thumbs/".$this->product->image; ?>" alt="<?= $this->product->translate("name") ?>" /></a>			
			<br>
			<a class="view" href="<?= $this->publicUrl . "Products/" . $this->product->image ?>" title="<?= $this->translate('Full Size') ?>"><?= $this->translate('Full Size') ?></a>
		</div>
		
		<br clear="left"></br>
			
		<h2><?= $this->translate('Product Description') ?></h2>
		<p>
			<?=$this->product->translate('description'); ?>
		</p>
<?php } else { ?> 
	<p><?= $this->translate('No Product Found') ?></p>
<?php }?>